"""
@-*- coding: utf-8 -*-
@ python: 3.12.3
@ 创建者: JacksonCode
@ 创建时间: 2025-10-13
"""
import base64


def base64_encode(data):
    return base64.b64encode(data.encode('utf-8'))

def base64_decode(data):
    return base64.b64decode(data.encode('utf-8'))

print(base64_encode("123456").decode())
print(base64_decode("MTIzNDU2").decode())
